package com.zjk.dao;

import com.zjk.domain.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author zhujinkai
 * @version 1.0
 * @date 2020/10/25 14:17
 */
public interface CommentRepository extends JpaRepository<Comment, Long> {

    List<Comment> findByBlogIdAndAndParentCommentNull(Long blogId, Sort sort);
}
